package com.Brave.manager.entry;


import com.Brave.manager.controller.StudentController;
import com.Brave.manager.controller.TeacherController;

import java.util.Scanner;

public class ManagerEntry {
    public static void main(String[] args) {
        Scanner S = new Scanner(System.in);
        while (true){
            System.out.println("--------欢迎来到信息管理系统--------");
            System.out.println("请输入您的选择: 1.学生管理  2.老师管理  3.退出");
            String select = S.next();
            switch (select){
                case "1":
                    StudentController StudentController = new StudentController();
                    StudentController.start();
                    break;
                case "2":
                    TeacherController TeacherController = new TeacherController();
                    TeacherController.start();
                    break;
                case "3":
                    System.out.println("感谢您使用本地系统，再见！");
                    System.exit(0);
                    break;
                default:
                    System.out.println("您的输入有误，请重新输入：");
                    break;
            }
        }
    }

}
